<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<html>
<head>
    <title>借书</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <!-- 引入 Bootstrap -->
    <link href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
    <script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
</head>
<body>
<script type="text/javascript">
    window.onload=function(){
        var qs = location.search;
        let msg = decodeURI(qs);
        let l = msg.substr(1)
        let l1= l.split("=")[1]
        if (l1 !== undefined) {
            alert(l1);
        }
    }
</script>
<div class="container">

    <div class="row clearfix">
        <div class="col-md-4 column"  >
            <a class="btn btn-primary"  href="${pageContext.request.contextPath}/lendListIndex">返回</a>
        </div>
        <div class="col-md-12 column">
            <div class="page-header">
                <h1>
                    <small>借书</small>
                </h1>
            </div>
        </div>
    </div>
    <form action="${pageContext.request.contextPath}/login/addLend" method="post">
        书名：<input type="text" name="bookName"><br><br><br>
        还书日期： <select name="LendTime">
        <option value="7" selected>7天之内</option>
        <option value="30" >小于30天大于7天</option>
        <option value="100" >大于30天小于100天</option>
    </select><br><br><br>

        <input type="submit" value="添加">
    </form>

</div>
</body>
</html>